import { createRouter, createWebHistory } from 'vue-router';
import Home from '../components/Home.vue';
import Login from '../components/Login.vue';
import Register from '../components/Register.vue';
import Info from '../components/Info.vue';
import About from '../components/About.vue';
import Honor from '../components/Honor.vue';
import Study from '../components/Study.vue';
import Exam from '../components/Exam.vue'

const routes = [
  { path: '/', component: Home },
  { path: '/login', component: Login },
  { path: '/register/student', component: Register },
  { path: '/home', component: Home },
  { path: '/info', component: Info },
  { path: '/about', component: About },
  { path: '/honor', component: Honor },
  { path: '/study', component: Study },
  { path: '/exam', component:Exam },
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;